package vo.userVO;

import java.util.HashMap;

/**
 * @author Zhu Yanhui
 *
 */
public class StudentVO extends UserVO {

	private HashMap<Integer, Double> GPA;
	private String departmentId;
	private String inOutInfo;             
	private int grade;
	
	
	/**
	 * StudentVO
	 * @功能：构造函数
	 * @param id
	 * @param name
	 * @param departmentId
	 * @param grade
	 */
	public StudentVO(String id, String name,String departmentId,int grade) {
		super(id, name);
		this.departmentId=departmentId;
		this.grade=grade;
	}

	/**
	 * @getGrade
	 * @功能:获得年级
	 * @return
	 */
	public int getGrade() {
		return grade;
	}

	/**
	 * @getGPA
	 * @功能:获得某一学期的学分绩
	 * @return
	 */
	public double getGPA(int term) {
		double result=GPA.get(term);
		return result;
	}

	
	/**
	 * @getDepartmentId
	 * @功能：获得院系名称
	 * @return
	 */
	public String getDepartmentId() {
		return departmentId;
	}
	
	/**
	 * @getInOutInfo
	 * @功能：获得准入准出信息
	 * @return
	 */
	public String getInOutInfo() {
		return inOutInfo;
	}

	

}
